export interface ApiResponse<T> {
  code: number;
  message: string;
  data: T;
}

export interface PageResponse<T> {
  total: number;
  list: T[];
  current: number;
  pageSize: number;
}

export interface PageParams {
  current?: number;
  pageSize?: number;
  keyword?: string;
  [key: string]: any;
}

export type LoadingState = 'idle' | 'loading' | 'succeeded' | 'failed';